package com.lkd.mapper;

import com.lkd.entity.Goods;

import java.util.List;

/**
 * @author A丶JIAN
 * @description 针对表【goods(商品表)】的数据库操作Mapper
 * @createDate 2023-07-02 14:06:55
 * @Entity com.lkd.entity.Goods
 */
public interface GoodsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Long id);

    List<Goods> queryAll();

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    Goods checkGood(Goods goods);

    Goods selectByGoodName(String goodsName);

    int downInventory(Integer goodsId);
}